#pragma once
#include "DJoint.h"

namespace Skill
{
	namespace Ode
	{
		ref class DWorld;
		ref class DVector3;
		ref class DContactInfo;
		namespace Joints
		{
			ref class DJointGroup;
			public ref class DContact : DJoint
			{			
			protected:
				virtual void CollectManagedMemory() override;
			public:
				///<summary>
				/// Create a new joint of the contact type.
				///</summary>
				///<param name = "world"> Wrold </param>
				///<param name = "group">
				/// set to null to allocate the joint normally.
				/// If it is valid the joint is allocated in the given joint group.
				///</param>				
				DContact(DWorld^ world , DJointGroup^ group , DContactInfo^ contact);				
			};
		}
	}
}